<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class AttributeValue extends Validate
{
    protected $rule = [
        'remark'          => 'require',
        'attribute_value' => 'require',
    ];

    protected $message = [
        'remark.require'          => '请输入属性说明',
        'attribute_value.require' => '请输入属性值',
    ];

    protected $scene = [
        'add'  => ['remark', 'attribute_value'],
        'edit' => ['remark', 'attribute_value']
    ];
}
